package com.github.loveshorn.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author Stephen
 * @since 2017-11-30
 */
@Configuration
public class BasicConfig {

    @Bean
    @ConfigurationProperties(prefix = "common.application")
    public ApplicationProperties app() throws Exception {
        return new ApplicationProperties();
    }
}
